/*
 * @Author: Clark
 * @Email: haixuanwoTxh@gmail.com
 * @Date: 2021-10-20 15:23:08
 * @LastEditors: Clark
 * @LastEditTime: 2021-12-10 12:05:53
 * @Description: file content
 */

// #include "server_tcp.h"
#include "talk_server.h"

int main(int argc, char *argv[])
{
    bool ret = false;
    unsigned int port = 8888;

    if (argc > 1)
    {
        port = atoi(argv[1]);
    }

    TcpServer server(port);

    ret = server.init();
    if (!ret)
    {
        printf("server init fail\n");
        return -1;
    }

    ret = server.start();
    if (!ret)
    {
        printf("server start fail\n");
        return -1;
    }

    return 0;
}

